package org.example.frw.exception;

public enum GlobalExceptionCode implements BaseExceptionCode {
    INVALID_ARGUMENT_ERROR(999997, "Invalid arguments found."),
    FEIGN_ERROR(999998, "Internal service invoke error, Please contact the administrator!"),
    SYSTEM_ERROR(999999, "System error, Please contact the administrator!");


    private final Integer code;
    private final String templateMessage;

    GlobalExceptionCode(Integer code, String templateMessage) {
        this.code = code;
        this.templateMessage = templateMessage;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getTemplateMessage() {
        return templateMessage;
    }
}


